package com.okaixz.client.model.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 陈大专
 * @time 2024/9/9 10:17
 * @des
 **/
@NoArgsConstructor
@Data
public class AssistantResult {

    private HeaderDTO header;
    private PayloadDTO payload;

    @NoArgsConstructor
    @Data
    public static class HeaderDTO {
        private int code;
        private String message;
        private String sid;
        private int status;
    }

    @NoArgsConstructor
    @Data
    public static class PayloadDTO {
        private ChoicesDTO choices;

        @NoArgsConstructor
        @Data
        public static class ChoicesDTO {
            private int status;
            private int seq;
            private List<TextDTO> text;

            @NoArgsConstructor
            @Data
            public static class TextDTO {
                private String content;
                private String role;
                private int index;
            }
        }
    }
}
